<template>
  <div>
    <button @click="minus">-</button>
    <span>{{ count }}</span>
    <button @click="plus">+</button>
  </div>
</template>
<script>
import mixin from "../store/index";

export default {
  mixins: [mixin],
  methods: {
    plus() {
      this._plus();
    },
    minus() {
      this._minus();
    },
  },
};
</script>
<style lang="scss" scoped>
span {
  margin: 0 20px;
}
</style>